package edu.wuwang.codec;

import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import java.io.File;
import java.io.IOException;

import edu.wuwang.codec.coder.VideoEncoder;

public class MainActivity extends AppCompatActivity {

    private VideoEncoder videoEncoder;
    private TextView viewById;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        viewById = (TextView) findViewById(R.id.tv);
        viewById.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                try {
                    videoEncoder.start();
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        });

    }
}
